const { override, fixBabelImports,addWebpackAlias } = require('customize-cra');
const path = require('path')
module.exports = override(
      fixBabelImports('import', {
         libraryName: 'antd-mobile',
         style: 'css',
       }),
       addWebpackAlias({
        ['assets']: path.resolve(__dirname, "src/assets"),
        ['styles']: path.resolve(__dirname, "src/assets/styles"),
        ['images']: path.resolve(__dirname, "src/assets/images"),
        ['icons']: path.resolve(__dirname, "src/assets/icons"),
        ['components']: path.resolve(__dirname, "src/components"),
        ['utils']:path.resolve(__dirname,"src/utils")
      }),
     );
